/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Task2;

import java.io.Serializable;

/**
 *
 * @author Patrick Füssinger
 * Exercise 2 bis 21.Nov.2011
 * ITB5_2
 * 
 * Implementation des Accounts
 */
public class Account implements Serializable {

    static int m_iAccountCounter = 0;
    private int m_iAccountNr = 0;
    private float m_fBalance = 0;

    public Account() {
        m_iAccountCounter++;
        this.setAccountNr(m_iAccountCounter);
    }

    public Account(float fBalance) {
        m_iAccountCounter++;
        this.setAccountNr(m_iAccountCounter);
        this.setBalance(fBalance);
    }

    /**
     * @return the AccountNr
     */
    public int getAccountNr() {
        return m_iAccountNr;
    }

    /**
     * @param set the AccountNr
     */
    public void setAccountNr(int m_iAccountNr) {
        this.m_iAccountNr = m_iAccountNr;
    }

    /**
     * @return get Balance
     */
    public float getBalance() {
        return m_fBalance;
    }

    /**
     * @param set Balance
     */
    public void setBalance(float m_fBalance) {
        this.m_fBalance = m_fBalance;
    }
}
